package com.dd.cloud.user.entity.chknowl;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Lx
 * @version 1.0
 * @date 2024/1/4
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "书院通用阅读数量记录表")
public class ChknowlReadCount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 用户id
     */
    @Column(comment = "用户id")
    private Integer userId;

    /**
     * 用户类型: 同登录类型
     */
    @Column(comment = "用户类型: 同登录类型")
    private Integer userType;

    /**
     * modelId
     */
    @Column(comment = "modelId")
    private Integer modelId;

    /**
     * modelType: 1课程 2书籍 3中药 4方剂 5医案
     */
    @Column(comment = "modelType: 1课程 2书籍 3中药 4方剂 5医案")
    private Integer modelType;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;
}
